function Console(consoleDivId, domHelper, eventHelper) {
	this.divId = consoleDivId;
	this.domHelper = domHelper;
	this.eventHelper = eventHelper;
	this.consoleDivId = this.divId + "_console";
	this.buttonsDivId = this.divId + "_buttons";

	domHelper.addChildDiv(this.divId, this.consoleDivId, "consoleBody");
	domHelper.addChildDiv(this.divId, this.buttonsDivId, "consoleButtons");
	var clearButtonsId = this.buttonsDivId + "_clear";
	domHelper.addChildAnchor(this.buttonsDivId, clearButtonsId, "#", "Clear");
	eventHelper.register(clearButtonsId, "click", function(event) {
		event.data.console.clear();
	}, {console:this});
}

Console.prototype.log = function(message) {
	this.domHelper.appendHTMLContent(this.consoleDivId, message);
}

Console.prototype.clear = function() {
	this.domHelper.setHTMLContent(this.consoleDivId, "");
}